package com.zhongc.advance.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zhongc.advance.api.UserService;
import com.zhongc.advance.common.code.CodeImageGenerator;

@Controller
public class Index {
	private final Logger logger = LoggerFactory.getLogger(getClass());
	
	@Autowired
	private UserService userService;
	
	@Autowired
	private CodeImageGenerator code;
	
	@RequestMapping("/")
	public String index(){
		logger.info("进入登陆页面");
		return "/com/login.vm";
	}
	@RequestMapping("/s")
	public String show(){
		logger.info("进入登陆页面");
		return "/user/regist.vm";
	}
	@RequestMapping("home")
	public String home(){
		
		return "/home/index.vm";
	}
}
